<script setup lang="ts">
import { ref } from 'vue'

const count = ref(0)
const validate = () => {
  console.log('表单组件内部的校验方法')
}
defineExpose({
  count,
  validate
})
</script>

<template>
  <h3>我是Form组件 - {{ count }}</h3>
  <button @click="validate">Form组件自身的方法</button>
</template>
